package com.zyz.common.core.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;

@AllArgsConstructor
@Getter
public enum ResultCodeEnum {

    SUCCESS(1000,"操作成功"),
    ERROR(2000,"服务器繁忙请刷新页面后重试"),

    FAILED(3000,"操作失败"),
    FAILED_UNAUTHORIZED(3001,"未授权"),
    FAILED_PARAMS_VALIDATE(3002,"参数校验失败"),
    FAILED_NOT_EXISTS(3003,"资源不存在"),
    FAILED_ALREADY_EXISTS(3004,"资源已存在"),
    FAILED_QUESTION_TITLE_EXISTS(3005,"题目标题不能重复"),
    FAILED_EXAM_TITLE_EXISTS(3006,"竞赛标题不能重复"),


    FAILED_USER_EXISTS(3101,"用户已存在"),
    FAILED_USER_NOT_EXISTS(3102,"用户不存在"),
    FAILED_LOGIN(3103,"用户名或密码错误"),
    FAILED_USER_BANNED(3104,"您已被拉入黑名单，请联系管理员"),

    FAILED_EXAM_START_TIME_BEFORE_CURRENT_TIME_NOT (3201,"竞赛开始时间不得早于目前时间"),
    FAILED_EXAM_START_TIME_AFTER_END_TIME_NOT (3202,"竞赛开始时间不得晚于结束时间"),
    FAILED_EXAM_NOT_EXISTS(3203,"竞赛不存在"),
    FAILED_EXAM_INSERT_QUESTION_NOT_EXISTS(3204,"为竞赛新增的题目不存在"),
    FAILED_EXAM_STARTED(3205,"当前竞赛已开始不得进行修改"),
    FAILED_EXAM_NOT_QUESTION(3206,"请添加题目后发布"),
    FAILED_EXAM_OVER(3207,"该竞赛已结束请修改竞赛时间后在重新发布"),
    FAILED_EXAM_NOT_PUBLISH(3208,"该竞赛已结束禁止撤销"),
    FAILED_EXAM_PUBLISHED(3209,"竞赛已发布禁止修改和删除"),

    FAILED_USER_PHONE_NUMBER(3301,"您输入的手机号码有误"),
    FAILED_PHONE_CODE_AGAIN(3302, "请一分钟后重试"),
    FAILED_PHONE_CODE_MAX_COUNT(3302, "您已达到当日验证码发送上限"),
    FAILED_CODE_ERROR(3303,"验证码过期或不正确"),

    FAILED_USER_HAS_ENTER(3401,"禁止重复报名"),
    FAILED_FILE_UPLOAD_TIME_LIMIT(3402,"您已达到当日更新上限"),
    FAILED_FILE_UPLOAD(3403,"文件上传失败"),

    FAILED_QUESTION_FIRST(3501, "当前题目已经是第一题了哦"),
    FAILED_QUESTION_LAST(3502,"当前题目已经是最后一题了哦"),
    FAILED_NOT_SUPPORT_PROGRAM (3523,"没有此语言选项"),

    FAILED_RABBIT_PRODUCE(3601,"mq生产者异常");

    private final int code;
    private final String msg;


}
